﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddBusinessImageGrid.aspx.cs" Inherits="FantastPlatform.Community.UI.InfoCollection.AddBusinessImageGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script type="text/javascript">
         var abig = new FantastPlatform.UI.AddImageGrid({
             renderTo: 'abig_div',
             url: '../Service/BusinessService.aspx?Action=SearchImage&id=' + '<%=GetId() %>',
             businessId: '<%=GetId() %>',
             height: 385,
             border: false,
             tbar: [{
                 text: '添加',
                 iconCls: 'add',
                 id: 'addBusinessImage',
                 tooltip: {
                     text: '添加商业店铺图片',
                     title: '添加商业店铺图片',
                     autoHide: true
                 },
                 handler: function () {
                     abig.onAddBusinessImageClick(abig.businessId);
                 }
             }, '-', {
                 text: '编辑',
                 iconCls: 'edit',
                 id: 'editPersonDetail',
                 tooltip: {
                     text: '编辑商业店铺人员',
                     title: '编辑商业店铺人员',
                     autoHide: true
                 },
                 handler: function () { abig.onEditBusinessImageClick(abig.businessId); }
             }, '-', {
                 text: '删除',
                 iconCls: 'delete',
                 id: 'deletePersonDetail',
                 handler: function () {
                    
                 }
             }, '-',
                {
                    text: '刷新',
                    iconCls: 'updata',
                    tooltip: {
                        text: '重新更新列表内容',
                        title: '列表刷新',
                        autoHide: true
                    },
                    handler: function () { abig.onUpdataBusinessImageClick(); }
                }]
         });
            abig.addListener('rowdblclick', function () { abig.onEditBusinessImageClick(); });
            abig.onUpdataBusinessImageClick();
    </script>
</head>
<body>
    <div id="abig_div">
    
    </div>
</body>
</html>
